rm(list = ls())

## packages 

library(tidyverse)
library(fixest)

## Load data 

dat <- readRDS('data/civey_clean.rds') 

## Estimate 

feols(vote_afd ~ treated_post + state_id*summer_bin  | user_id + date, 
            data = dat ,
            fsplit = ~ foreign_non_eu_share_bin, 
            cluster = ~ user_id) %>%
  etable(keep = 'treated_post')

